package ch.uzh.ifi.sopra.gruppe9.rmi_test;

import java.awt.Component;
import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;


public class Player extends UnicastRemoteObject implements IPlayer {

	private static final long serialVersionUID = 2982917921414031666L;

	private Game game;
	
	private int balance = 1;
	
	private boolean isReady = false;

	protected Player(Game game) throws RemoteException {
		this.game = game;
	}
	
	public void setMoneyIncrease(int increase) throws RemoteException {
		this.balance += increase;
	}

	public int getBalance() throws RemoteException {
		return balance;
	}
	
	public boolean isReady() throws RemoteException {
		return isReady;
	}

	public void setReady(boolean isReady) throws RemoteException {
		this.isReady = isReady;
	}

}
